﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ViewFile.aspx.cs" Inherits="CrossFactory.SiteNote.WWW.ViewFile" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Image View</title>
    <link href="~/Design/%CurrentDesign%/LayoutStyleSheet.css" type="text/css" rel="stylesheet" />
    <link href="~/Design/%CurrentDesign%/ContentStyleSheet.css" type="text/css" rel="stylesheet" />
    <link href="~/Design/%CurrentDesign%/PrintStyleSheet.css" type="text/css" rel="stylesheet" media="print" />
    <script language="javascript" type="text/javascript" src="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Scripts/website.js"></script>
    <script language="javascript">
    function ResizeDialogBoxSiteNote2()
    {			
   	
	    var heightSup;
	    var toobarSize;
	    var widthSup;
	    var sizeDifWidth = 30;
	    var sizeHscroll = 25;
	
	    heightSup = document.getElementById("size").offsetHeight;
	     
	    widthSup = document.getElementById("size").offsetWidth;    		
    	
    	/*
	    if (widthSup + document.body.clientWidth + sizeDifWidth> window.screen.availWidth)
	    {
		    widthSup = window.screen.availWidth - document.body.clientWidth - sizeDifWidth;
	    }
	    if (heightSup + document.body.clientHeight  > window.screen.availHeight)
	    {
		    heightSup = window.screen.availHeight - document.body.clientHeight;
	    }*/
	    if (heightSup > 0 && widthSup  > 0)
	    {
	        window.resizeTo(widthSup + 70, heightSup + 155);
	    }
	    
    }

    function load()
	{
		ResizeDialogBoxSiteNote2();
		ResizeDialogBoxSiteNote2();
	}
    </script>
</head>
<body class="ImageViewBody" onload="load()">
    <form id="form1" runat="server">
    <a href="#" id="size" style="text-decoration:none;">
         <nobr><asp:Label runat="server" ID="ImageTitle" CssClass="ImageViewTitle" /></nobr><br />
         <asp:Image runat="server" ID="ImageView" CssClass="ImageViewImage" /><br />
         
    </a>
    <a href="#" onclick="window.close()" class="ImageViewClose">Close window</a><br />
    </form>
</body>
</html>
